package com.example.personnel_oa.service.impl;


import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.comment_oa.pojos.JobRecord;
import com.example.personnel_oa.service.JobRecordService;
import com.example.personnel_oa.mapper.JobRecordMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
* @author HEYONG
* @description 针对表【job_record】的数据库操作Service实现
* @createDate 2022-10-25 09:37:39
*/
@Service
public class JobRecordServiceImpl extends ServiceImpl<JobRecordMapper, JobRecord>
implements JobRecordService{
    @Autowired
    JobRecordMapper jobRecordMapper;

    //新增一条岗位发布记录
    @Override
    public int addjobrecord(JobRecord jobRecord) {
        int addjobrecord = jobRecordMapper.addjobrecord(jobRecord);
        return addjobrecord;
    }

    //新增一条岗位需求撤回记录
    @Override
    public int addjobrecord2(JobRecord jobRecord) {
        int i = jobRecordMapper.addjobrecord2(jobRecord);
        return i;
    }

    //新增一条岗位需求重新发布记录
    @Override
    public int addjobrecord3(JobRecord jobRecord) {
        int i = jobRecordMapper.addjobrecord3(jobRecord);
        return i;
    }

    //新增一条岗位需求关闭发布记录
    @Override
    public int addjobrecord4(JobRecord jobRecord) {
        int i = jobRecordMapper.addjobrecord4(jobRecord);
        return i;
    }
}
